import request from '@/utils/request'

// 查询成绩表2列表
export function listCourses2(query) {
  return request({
    url: '/system/courses2/list',
    method: 'get',
    params: query
  })
}

// 查询成绩表2详细
export function getCourses2(courseId) {
  return request({
    url: '/system/courses2/' + courseId,
    method: 'get'
  })
}

// 新增成绩表2
export function addCourses2(data) {
  return request({
    url: '/system/courses2',
    method: 'post',
    data: data
  })
}

// 修改成绩表2
export function updateCourses2(data) {
  return request({
    url: '/system/courses2',
    method: 'put',
    data: data
  })
}

// 删除成绩表2
export function delCourses2(courseId) {
  return request({
    url: '/system/courses2/' + courseId,
    method: 'delete'
  })
}
